var con = require("../../../../utils/data.js");
var WxParse = require

  ("../../../../wxParse/wxParse.js");
var app = getApp();
Page({
  data: {
    artD: {

    }


  },
  onLoad: function (options) {
    var that = this;
    var id = options.id;
    // wx.request({ 
    //   url: con.getartical,
    //   data: { wxappid: con.wyy_user_wxappid, id: id }, 
    //   header: {
    //     "Content-Type": "application/json"
    //   },
    //   success: function (res) { 
    //     console.log(res.data);
    //     WxParse.wxParse('arta', 'html', res.data.details, that, 
    //       0);
    //     that.setData({
    //       // artD: res.data
    //       text: res.data.text,
    //       title: res.data.title,
    //       img: res.data.img
    //     })
    //   }
    // });
    var oneRequest = { "data": { "id": "6", "wxappid": "6", "typeid": "5", "title": "家装报价", "text": "因为你的家,就是我们的家,因为顾客,就是上帝,我们为上帝提供最优的服务,最适合的价钱", "details": "<p>的萨菲拉开距离就哭了尽量尽量快进来看快乐快乐就凉快哪了呢凉快圣诞节快哭了解放了贷款时间了空间车型,来看大家来看拉开距离咖啡色的,放大搜卡嘉莉放大数据量快捷你来看大家来看而我李炯sd卡就噢诶哦不能从下面哦偶尔今晚哦的说法经理级能吃吗就哭了我就欧皮文理科的撒娇刻录机额外破来看就上课了偶尔今晚io</p>", "createtime": "2017-07-17", "img": "http://www.weiyunyi.com/Uploads/20170715/5969902c56885.jpg", "toppic": "http://www.weiyunyi.com/Uploads/20170715/5969673bd509c.jpg" }, "header": { "Server": "NWSs", "Date": "Fri, 29 Dec 2017 08:24:23 GMT", "Content-Type": "application/json; charset=utf-8", "Content-Length": "1351", "Connection": "keep-alive", "Cache-Control": "must-revalidate, no-store", "Pragma": "no-cache", "X-Powered-By": "PHP/5.4.33,ASP.NET", "Set-Cookie": "PHPSESSID=huafmb1dgf4agf9mrk2a8kvis3; path=/", "X-NWS-LOG-UUID": "ebaac73e-bdb4-45fc-8b6f-92bddf84ace6", "X-Daa-Tunnel": "hop_count=2" }, "statusCode": 200, "errMsg": "request:ok" };
    WxParse.wxParse('arta', 'html', oneRequest.data.details, that,
      0);
    that.setData({
      // artD: res.data
      text: oneRequest.data.text,
      title: oneRequest.data.title,
      img: oneRequest.data.img
    })
  },

})

